
 <script type="text/javascript" >
          //var url = getUrl()+ "services/OrgaPeopleManageService";
          var querydataInc =  new Array();
          var pagenumberInc=1;
      		var pagesizeInc=6;
          var queryvoInc=new PeopleVO(); //   
         
		 var getChoiseInc = function(inRowIndex) {
			       /* if("<%=peoID%>"==querydataInc[inRowIndex][1]){
                  return  '<input class="dojoxGrid-input"  name="selectPeople" id="'+querydataInc[inRowIndex][1]+'" checked="true" type="checkbox"/>'
              }else{
                  return  '<input class="dojoxGrid-input"  name="selectPeople" id="'+querydataInc[inRowIndex][1]+'"  type="checkbox"/>'
              }*/
			    }
          var modelInc = new dojox.grid.data.Table(null, querydataInc);
          var layoutInc =[{type: 'dojox.GridRowView', width: '20px' },{
               cells: [
                          [
                           {name: '????', width: 3, get:getChoise},
                           //{ name: 'choise', width: 3, styles: 'text-align: center;', editor: dojox.grid.editors.Bool },//
                           { name: 'No.', width: 2, styles: 'text-align: center;', get: function(inRowIndex){ return inRowIndex+1;} },//
                           {name: 'peopleName', width: 10 ,field:2 }
                         ,   {name: 'peoplePassword', width: 10 }
                         ,   {name: 'remark', width: 10 }
                         ,   {name: 'peopleStatus', width: 10 }
                         ,   {name: 'birthDay', width: 10 }
                         ,   {name: 'sex', width: 10}
                         ,   {name: 'birthPlace', width: 10 }
                         ,   {name: 'address', width: 10}
                         ,   {name: 'tel', width: 10 }
                         ,   {name: 'engageMode', width: 10}
                         ,   {name: 'engageDate', width: 10 }
                         ,   {name: 'grade', width: 10}
                          ] ] }];
						  
			function initInc(){

              var p = new SOAPClientParameters2();
              //queryvo.id="<%=peoID%>";
              p.add('PeopleVO',queryvo) ;
              p.add('pageNumber',pagenumber) ;
      		    p.add('pageSize',pagesize) ;
      		    p.add('orderBy','%') ;
              SOAPClient.invoke(getUrl()+ "services/OrgaPeopleManageService", "getPeople", p, false,  function GetEnu_callBack(ul, soapResponse){   
                        querydataInc=PeopleVOtoArray_fun(ul,true);
           //totalCount=ul[ul.length-1]["ns:id"]; 
           //totalpage=Math.ceil(new Number(totalCount)/pagesize);
           //document.getElementById("rowCountInc").innerHTML=" "+pagenumber+" / "+totalpage+" / "+totalCount+" " ;
      }); 
      querydataInc.splice(querydataInc.length-1,1);
      modelInc.setData(querydataInc);  
      //dijit.byId("grid").update();

}			  
						  
						  
</script>
	 <div dojoType='dijit.Dialog' id='selectPeoDialog' title='rtrt'  execute='buildTask()'>
     	<div id='queryDivInc' style='margin-right: 30px;  height: 23%; display:none;' >
              <table align='center' width=86% class='queryTable'  >
              <tr ><td align='center' style='width:16%'>Please input criterial:</td><td style='width:34%' colspan='2'></td><td style='width:17%'></td><td style='width:33%' colspan='2'></td></tr> 
              <tr ><td align='center' style='width:16%'>                       </td><td style='width:34%' colspan='2'></td><td style='width:17%'></td><td style='width:33%' colspan='2'></td></tr> 


              <tr  height='6' >
               <td align='right' style='width:16%'>peopleName:</td><td align='left' style='width:17%'><input type='text'  id='queryIncpeopleName'  jsid='queryIncpeopleName'   dojoType='dijit.form.TextBox'  /></td>
               <td align='right' style='width:17%'>peoplePassword:</td><td align='left' style='width:17%'><input type='text'  id='queryIncpeoplePassword'  jsid='queryIncpeoplePassword'   dojoType='dijit.form.TextBox'  /></td>  
               <td align='right' style='width:17%'>remark:</td><td align='left' style='width:16%'><input type='text'  id='queryIncremark'  jsid='queryIncremark'   dojoType='dijit.form.TextBox'  /></td>  
                                          
              </tr>
              <tr  height='6' >
               <td align='right' style='width:16%'>peopleStatus:</td><td align='left' style='width:17%'><input type='text'  id='queryIncpeopleStatus'  jsid='queryIncpeopleStatus'   dojoType='dijit.form.TextBox'  /></td>
               <td align='right' style='width:16%'>birthDay:</td>
               <td align='left' colspan='3' style='{width:51%}' ><input style='{width:30%}'   jsid='queryIncbirthDay' id='queryIncbirthDay'  constraints='{datePattern:'yyyy-MM-dd'}' dojoType='dijit.form.DateTextBox'  />
                  <input style='{width:15%}' jsid='queryIncbirthDayTime' id='queryIncbirthDayTime' value='00:00' dojoType='dijit.form.TimeTextBox' constraints='{timePattern:'HH:mm'}'   invalidMessage='Invalid time. Use HH:mm where HH is 00 - 23 hours.'>
                  to<input style='{width:30%}'   jsid='queryInc2birthDay' id='queryInc2birthDay'  constraints='{datePattern:'yyyy-MM-dd'}' dojoType='dijit.form.DateTextBox'  />
                  <input style='{width:15%}' jsid='queryInc2birthDayTime' id='queryInc2birthDayTime' value='00:00' dojoType='dijit.form.TimeTextBox' constraints='{timePattern:'HH:mm'}'   invalidMessage='Invalid time. Use HH:mm where HH is 00 - 23 hours.'>
               </td>
               </tr>
               <tr  height='6' >
                <td align='right' style='width:16%'>sex:</td><td align='left' style='width:17%'><input type='text'  id='queryIncsex'  jsid='queryIncsex'   dojoType='dijit.form.TextBox'  /></td>
                <td align='right' style='width:17%'>birthPlace:</td><td align='left' style='width:17%'><input type='text'  id='queryIncbirthPlace'  jsid='queryIncbirthPlace'   dojoType='dijit.form.TextBox'  /></td>  
                <td align='right' style='width:17%'>address:</td><td align='left' style='width:16%'><input type='text'  id='queryIncaddress'  jsid='queryIncaddress'   dojoType='dijit.form.TextBox'  /></td>  
               </tr>
               <tr  height='6' >
                <td align='right' style='width:16%'>tel:</td><td align='left' style='width:17%'><input type='text'  id='queryInctel'  jsid='queryInctel'   dojoType='dijit.form.TextBox'  /></td>
                <td align='right' style='width:17%'>engageMode:</td><td align='left' style='width:17%'><input type='text'  id='queryIncengageMode'  jsid='queryIncengageMode'   dojoType='dijit.form.TextBox'  /></td>  
                <td align='right' style='width:16%'>grade:</td><td align='left' style='width:17%'><input type='text'  id='queryIncgrade'  jsid='queryIncgrade'   dojoType='dijit.form.TextBox'  /></td>
               </tr>                
	             <tr align='center'><td></td><td colspan='2'><a onclick='querybutton();'><img src='../image/332.gif' height='20' width='20' border='0'>OK</a></td><td></td><td colspan='2'></td></tr>
						   </table>
	     </div>
	       	<div align='right'>
	       	         <!--button dojoType='dijit.form.Button' onclick='selectPeo();'  iconClass='plusIcon'>ok</button-->
	          	     <button dojoType='dijit.form.Button' onclick='querydis();' iconClass='plusIcon' >query</button>
                   <button dojoType='dijit.form.Button' onclick='allpage(this);' id='but8Inc' jsId='but8Inc' iconClass='plusIcon'>allpage</button>
	                 <button dojoType='dijit.form.Button' onclick='upPage();' disabled='true' id='but6Inc' jsId='but6Inc' iconClass='plusIcon'>pageup</button>
                   <button dojoType='dijit.form.Button' onclick='downPage();' id='but7Inc' jsId='but7Inc' iconClass='plusIcon'>pagedown</button>
                   
         		</div>   
	        
	      
	         <div id='rowCountInc'></div>
	    <div style='{height:90%;width:100%}'  >
	         <div id='gridInc'  dojoType='dojox.Grid' autoWidth='false'  jsId='gridInc'	model='modelInc'  structure='layoutInc'  ></div>
      </div>      
</div>'